﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.From {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_ElectricLock", DisableSyncStructure = true)]
	public partial class TElectricLock {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 锁杆状态
		/// </summary>
		[JsonProperty]
		public int? LockRod { get; set; }

		/// <summary>
		/// 外盖状态
		/// </summary>
		[JsonProperty]
		public int? OuterCover { get; set; }

		/// <summary>
		/// 二盖状态
		/// </summary>
		[JsonProperty]
		public int? SecondCover { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

	}

}
